import request from '@/utils/request'

// 查询离职记录列表
export function listResignation_record(query) {
  return request({
    url: '/resignation_record/resignation_record/list',
    method: 'get',
    params: query
  })
}

// 查询离职记录详细
export function getResignation_record(id) {
  return request({
    url: '/resignation_record/resignation_record/' + id,
    method: 'get'
  })
}

// 新增离职记录
export function addResignation_record(data) {
  return request({
    url: '/resignation_record/resignation_record',
    method: 'post',
    data: data
  })
}

// 修改离职记录
export function updateResignation_record(data) {
  return request({
    url: '/resignation_record/resignation_record',
    method: 'put',
    data: data
  })
}

// 删除离职记录
export function delResignation_record(id) {
  return request({
    url: '/resignation_record/resignation_record/' + id,
    method: 'delete'
  })
}
